package com.bben.medical.mapper.medical;

import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CustomTUserMapper {
    @Select("select r.`code` from t_user u,t_user_role_ref ur,t_role r where u.id=ur.user_id and ur.role_id=r.id and u.user_name=#{userName}")
    List<String> getRoleCodesByUserName(String userName);
}
